{% extends 'base-message.html' %}
{% block title %}场景消息{% endblock %}
{% block message_content %}
    <div style="padding:5px 0 10px 5px;border-bottom: 1px solid #ddd;">
        <b>{{ table_name }} 数据表</b></div>
<table class="table">
    <tr>
        <th>id</th>
        <th>biz_id</th>
        <th>app_code</th>
        <th>pc_code</th>
        <th>channels</th>
        <th>action</th>
        <th>操作</th>
    </tr>
    {% for row in records %}
        <tr>
            <td>{{ row[0] }}</td>
            <td>{{ row[1] }}</td>
            <td>{{ row[2] }}</td>
            <td>{{ row[3] }}</td>
            <td>--</td>
            <td>{{ row[5] }}</td>
            <td>
                <a href="javascript:;" class="btn btn-link btn_api" style="padding:0;vertical-align:middle;"
                   data-id="{{ row[0] }}" data-action="{{ action }}">scene_send</a>
                | <a href="javascript:" class="btn btn-link btn_api"
                   style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                >scene_update_status</a>
                | <a href="javascript:" class="btn btn-link btn_api"
                   style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                >scene_delete_by_biz_id</a>
                 {% if row[6]|length >5 %}
                | <a href="javascript:" class="btn btn-link btn_api"
                   style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                >scene_delete_by_business_id</a>
                {% endif %}
            </td>
        </tr>
    {% endfor %}
</table>
{% endblock %}